home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / MacShell / MacShellCommon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-04  |  4.5 KB  |  171 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MacShell
  6. #
  7. #    MacShell.h    -    Rez and C Include Source
  8. #
  9. #    Copyright © 1989 Apple Computer, Inc.
  10. #    All rights reserved.
  11. #
  12. #    Versions:
  13. #                1.00                08/88
  14. #                1.01                11/88
  15. #                1.02                04/89    MPW 3.1
  16. #                2.00                09/90    7.0 Happy
  17. #
  18. ------------------------------------------------------------------------------*/
  19.  
  20.  
  21. #ifndef __CSHELLCOMMON__
  22. #define __CSHELLCOMMON__
  23.  
  24. /*    MacShell.c and MacShell.r include this file. */
  25.  
  26. #ifndef __MACSHELLVERSION__
  27. #include "MacShellVersion.h"
  28. #endif
  29.  
  30. #define docCreator    'CSHL'
  31. #define docFileType    'CDOC'
  32.  
  33. #define rTECtl        256
  34. #define rListCtl    272
  35.  
  36. #define kMinSize    150                /* application's minimum size (in K) */
  37. #define kPrefSize    200                /* application's preferred size (in K) */
  38.  
  39. #define    rMenuBar    128                /* application's menu bar */
  40. #define    rAboutAlert    128                /* about alert */
  41. #define    rErrorAlert    129                /* error alert */
  42. #define    rWindow        128                /* application's window */
  43.  
  44. #define rWindowYPos        60
  45. #define rWindowHeight    287
  46. #define rWindowXPos        40
  47. #define rWindowWidth    504
  48.  
  49. /* The following constants are used to identify menus and their items. The menu IDs
  50.    have an "m" prefix and the item numbers within each menu have an "i" prefix. */
  51.  
  52. #define    mApple                    128        /* Apple menu */
  53. #define    iAbout                    1
  54.  
  55. #define    mFile                    129        /* File menu */
  56. #define    iNew                    1
  57. #define iOpen                    2
  58. #define    iClose                    4
  59. #define iSave                    5
  60. #define    iSaveAs                    6
  61. #define iDuplicate                7
  62. #define    iPageSetup                9
  63. #define    iPrint                    10
  64. #define    iQuit                    12
  65.  
  66. #define    mEdit                    130        /* Edit menu */
  67. #define    iUndo                    1
  68. #define    iCut                    3
  69. #define    iCopy                    4
  70. #define    iPaste                    5
  71. #define    iClear                    6
  72.  
  73. /* menu constants for communicate */
  74. #define mCommunicate            131
  75. #define iConnectToUser            1
  76. #define iSendToUser                2
  77.  
  78.  
  79. /*    1.01 - kMinHeap - This is the minimum result from the following
  80.     equation:
  81.  
  82.         ORD(GetApplLimit) - ORD(ApplicZone)
  83.  
  84.     for the application to run. It will insure that enough memory will
  85.     be around for reasonable-sized scraps, FKEYs, etc. to exist with the
  86.     application, and still give the application some 'breathing room'.
  87.     To derive this number, we ran under a MultiFinder partition that was
  88.     our requested minimum size, as given in the 'SIZE' resource. */
  89.  
  90. #define kMinHeap                21 * 1024
  91.  
  92.  
  93. /*    1.01 - kMinSpace - This is the minimum result from PurgeSpace, when called
  94.     at initialization time, for the application to run. This number acts
  95.     as a double-check to insure that there really is enough memory for the
  96.     application to run, including what has been taken up already by
  97.     pre-loaded resources, the scrap, code, and other sundry memory blocks. */
  98.  
  99. #define kMinSpace                8 * 1024
  100.  
  101.  
  102.  
  103. /* These #defines are used to set enable/disable flags of a menu */
  104.  
  105. #define AllItems    0b1111111111111111111111111111111    /* 31 flags */
  106. #define NoItems        0b0000000000000000000000000000000
  107. #define MenuItem1    0b0000000000000000000000000000001
  108. #define MenuItem2    0b0000000000000000000000000000010
  109. #define MenuItem3    0b0000000000000000000000000000100
  110. #define MenuItem4    0b0000000000000000000000000001000
  111. #define MenuItem5    0b0000000000000000000000000010000
  112. #define MenuItem6    0b0000000000000000000000000100000
  113. #define MenuItem7    0b0000000000000000000000001000000
  114. #define MenuItem8    0b0000000000000000000000010000000
  115. #define MenuItem9    0b0000000000000000000000100000000
  116. #define MenuItem10    0b0000000000000000000001000000000
  117. #define MenuItem11    0b0000000000000000000010000000000
  118. #define MenuItem12    0b0000000000000000000100000000000
  119. #define MenuItem13    0b0000000000000000001000000000000
  120.  
  121.  
  122. #define A_USERITEM    2
  123. #define sErrorOccurred 1            /* Strings to display in the user item */
  124. #define sErrorNumber 2
  125. #define sEventWhat 3
  126. #define sEventMessage 4
  127. #define sMessageID 5
  128.  
  129.  
  130. #define rYesNoCancel    250
  131. #define rOpenReadOnly    260
  132. #define rPrStatusDlg    270
  133.  
  134. #define ibeamCursor        257
  135. #define oappCursor        300
  136. #define odocCursor        301
  137. #define pdocCursor        302
  138. #define quitCursor        303
  139. #define ansrCursor        304
  140. #define mvfwCursor        305
  141. #define echoCursor        306
  142.  
  143.  
  144. /* miscellaneous string list ID */
  145. #define rMiscStrings 366
  146. #define sSFprompt 1
  147. #define sOrigName 2
  148. #define sWClosing 3
  149. #define sQuitting 4
  150.  
  151.  
  152. /* Not-good-at-all startup error messages. */
  153. #define rBadNewsStrings            367
  154. #define sWimpyMachine            1        /* Strings to display in the user item */
  155. #define sHeapTooSmall            2
  156. #define sNoFreeRoomInHeap        3
  157. #define sBadThingHappened        4
  158.  
  159.  
  160. #define rDynHelpStrings        368
  161. #define rDynHelpSlider        1
  162.  
  163.  
  164. #define rPPCText    500
  165. #define sTitleText  1
  166. #define sAppText    2
  167.  
  168.  
  169. #endif __CSHELLCOMMON__
  170.  
  171.